﻿<GenericWPF:WindowExtenBase x:Class="EzDesk.DesktopClient.View.NotificationView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:GenericWPF="clr-namespace:EzDesk.Generic.WPF;assembly=EzDesk.Generic.WPF"
         AllowsTransparency="True"
        WindowStyle="None" 
        Background="Transparent"
        HorizontalAlignment="Right"
        VerticalAlignment="Bottom"
        WindowStartupLocation="Manual"

        Title="NotificationView" Height="144"  Width="288">
    <Grid x:Name="LayoutRoot">
        <Border BorderThickness="2"  BorderBrush="#FF7B96C6" Background="White">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80">
                    </ColumnDefinition>
                    <ColumnDefinition Width="*">
                    </ColumnDefinition>
                    <ColumnDefinition Width="Auto">
                    </ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid x:Name="NavigatorContainer" Grid.Column="0" Margin="5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Image Grid.Row="0" Source="{StaticResource CaptionImage}"></Image>
                    <Grid Grid.Row="1">
                        <Button x:Name="PreviewBtn" Click="PreviewBtnClick"  HorizontalAlignment="Left" Content="{DynamicResource PreviewMessage}"></Button>
                        <Button x:Name="NextBtn" Click="NextBtnClick" HorizontalAlignment="Right" Content="{DynamicResource NextMessage}"></Button>
                    </Grid>
                </Grid>
                <ContentControl x:Name="MessageContainer"  Grid.Column="1" Margin="5" Content="{Binding   Path=CurrentFeedViewModel.View}">

                </ContentControl>
                <Grid Grid.Column="2" Margin="5">
                    <Button x:Name="CloseBtn" Margin="1" Style="{StaticResource SimpleFunctionButtonStyle}" Click="CloseBtn_Click" VerticalAlignment="Top">
                        <Grid>
                            <Path Stretch="Fill"  Margin="1" StrokeThickness="2" Data="M1,1 L0,0 " Stroke="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Button, AncestorLevel=1}, Path=Foreground}" />
                            <Path Stretch="Fill"  Margin="1" StrokeThickness="2" Data="M0,1 L1,0 " Stroke="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Button, AncestorLevel=1}, Path=Foreground}" />
                        </Grid>
                    </Button>
                </Grid>
            </Grid>
        </Border>
    </Grid>
</GenericWPF:WindowExtenBase>
